package ru.aslanov.schedule.client.ds;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * Created: Feb 5, 2010 11:39:41 AM
 *
 * @author Sergey Aslanov
 */
public class ChildDS extends BaseDS {
    private String parentId;
    private String requestParamName;

    public ChildDS(String id, String parentId, String requestParentParamName, InputLangProvider inputLangProvider) {
        super(id + parentId, id, inputLangProvider);
        this.parentId = parentId;
        this.requestParamName = requestParentParamName;
    }

    @Override
    protected Map getRequestParams() {
        final Map map = super.getRequestParams();
        map.put(requestParamName, parentId);
        return map;
    }

}
